﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LPNRTool
{
    public partial class ParaSetForm : Form
    {
        public ParaSetForm()
        {
            InitializeComponent();
        }

        private void ParaSetForm_Load(object sender, EventArgs e)
        {
            this.Width = 500;
            this.Height = 600;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
        }

        private void ParaConfirmButton_Click(object sender, EventArgs e)
        {
            judgecheck();//判断check
            this.Close();
        }

        public void judgecheck()
        {
            LPNRTool ParaLpnrTool = (LPNRTool)this.Owner;
            if (EnableIamgecheckBox.Checked == true)
            {
                ParaLpnrTool.enableallbit = false;
            }
            else
            {
                ParaLpnrTool.enableallbit = true;
            }
            if (EnableQuadcheckBox.Checked == true)
            {
                ParaLpnrTool.enablequadbit = true;
            }
            else
            {
                ParaLpnrTool.enablequadbit = false;
            }
            if (EnableTheadcheckBox.Checked == true)
            {
                ParaLpnrTool.enabletheadbit = true;
            }
            else
            {
                ParaLpnrTool.enabletheadbit = false;
            }
        }

        private void EnableIamgecheckBox_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void EnableQuadcheckBox_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void EnableTheadcheckBox_CheckedChanged(object sender, EventArgs e)
        {

        }

    }
}
